package la.iok.hzsvn.lewin.movie.operation.model;

import java.util.Objects;

public class MoviePlayerVo {
    private Long id;
    /**
     * 开本记录id
     */
    private Long playRecordId;
    /**
     * 玩家用户的id
     */
    private Long userId;
    /**
     * 用户账号,目前为手机号
     */
    private String username;
    /**
     * 角色id
     */
    private Long playRoleId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPlayRecordId() {
        return playRecordId;
    }

    public void setPlayRecordId(Long playRecordId) {
        this.playRecordId = playRecordId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getPlayRoleId() {
        return playRoleId;
    }

    public void setPlayRoleId(Long playRoleId) {
        this.playRoleId = playRoleId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MoviePlayerVo that = (MoviePlayerVo) o;
        return Objects.equals(id, that.id) && Objects.equals(playRecordId, that.playRecordId) && Objects.equals(userId, that.userId) && Objects.equals(username, that.username) && Objects.equals(playRoleId, that.playRoleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, playRecordId, userId, username, playRoleId);
    }
}
